import { Component } from "react"
import {useParams,useLocation,useNavigate}  from "react-router-dom"

function withRouter(Component) {
    return (props) => (
      <Component
        {...props}
        params={useParams()}
        location={useLocation()}
        navigate={useNavigate()}
      />
    );
  }

class Allyu2 extends Component {
    constructor() {
        super()
        this.state = {

        }
        
    }
    
    render() {
        console.log(this.props);
        return (
            <div>
                Allyu2
            </div>
        )
    }
}

export default withRouter(Allyu2)